import './App.css';
import Tree from '@/tree'
import TitleList from '@/components/testHoc/titleList.js'
import { useState } from 'react'

function App() {
  const [state, setState] = useState({
    speed: 1
  })
  const onInput = (event) => {
    setState({speed: event.target.value})
  }
  return (
    <div className="App">
      生长速度：<input value={state.speed} onInput={onInput}></input>
      <Tree speed={state.speed}></Tree>
      <TitleList></TitleList>
    </div>
  );
}

export default App;
